package org.dizena.blog.starter.feign;

import org.dizena.blog.starter.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpEntity;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "mod-auth",path = "/auth",contextId = "authFeign")
public interface AuthFeign {
    @GetMapping("/get")
    HttpEntity<User> get();

    @GetMapping("/post")
    HttpEntity<User> post(User user);

}
